﻿
<article id="templates" class="span12">
    <h3>Templates</h3>
    <div class="inner-1">
        <ul id="templatesList" class="thumbnails thumbnails-1" data-bind="foreach: Templates" >
            <li class="span3">
                  <div class="thumbnail thumbnail-1">
                    <div class="">
                        <img data-bind="attr: { src: '/Data/TemplateImages/' + thumbnail(), alt: name() }"></div>
                          <section> 
                		    <a data-bind="attr: { href: '/editor/?id=' + id() + '&type=template' }"><h3 data-bind="    text: name()"></h3></a>
                	        <div class="meta">
                                <time data-bind="attr: { datetime: updated() }" class="date-1"><i class="icon-calendar"></i>
                                    <span data-bind="text: updated()"></span></time>
                                <div class="name-author"><i class="icon-user"></i> <a data-bind="text: user.username"></a></div>
                                @*<a class="comments"><i class="icon-comment"></i> 7 comments</a>*@
                            </div> 
                            <div class="clear"></div>
                          <p data-bind="text: description()"></p>
                          <a data-bind="attr: { href: '/editor/?id=' + id() + '&type=template' }" class="btn btn-1">Edit</a> 
                              <a data-bind="attr: { href: '/Template/Delete?id=' + id() }" class="btn btn-1">Delete</a> 
                              <a data-bind="attr: { href: '/Template/ExportTemplate?id=' + id() }"  class="btn btn-1">Download</a>
                       </section>
                </div>
            </li>
        </ul>
    </div>
                
</article>
